package com.back.Configuration;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component

public class MqttProperties {

    @Value("${spring.mqtt.username}")
    private String username;

    @Value("${spring.mqtt.password}")
    private String password;

    @Value("${spring.mqtt.hostUrl}")
    private String hostUrl;

    @Value("${spring.mqtt.clientid}")
    private String clientId;

    @Value("${spring.mqtt.defaultTopic}")
    private String defaultTopic;

    @Value("${spring.mqtt.timeout}")
    private int timeout;

    @Value("${spring.mqtt.keepalive}")
    private int keepAlive;

    @Value("${spring.mqtt.cleanSession}")
    private Boolean cleanSession;

    @Value("${spring.mqtt.reconnect}")
    private Boolean reconnect;

    @Value("${spring.mqtt.isOpen}")
    private Boolean isOpen;

    @Value("${spring.mqtt.qos}")
    private Integer qos;
}



